package com.ruoyi.city.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 城市列表对象 city
 * 
 * @author tzh
 * @date 2025-09-11
 */
public class City extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 城市ID */
    @Excel(name = "城市ID")
    private Long id;

    /** 所属地区ID */
    @Excel(name = "所属地区ID")
    private Long regionId;

    /** 城市名称 */
    @Excel(name = "城市名称")
    private String name;
    @Excel(name = "所属地区名称")
    @TableField(exist = false)
    private String regionName;

    /** 城市编码 */
    @Excel(name = "城市编码")
    private String code;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    // 添加 getter/setter 方法
    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setRegionId(Long regionId) 
    {
        this.regionId = regionId;
    }

    public Long getRegionId() 
    {
        return regionId;
    }

    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }

    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }

    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

}
